package edu.hcnu.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component

// 只负责 yml 注入
@ConfigurationProperties(prefix = "student")
public class Student {
    private int id;
    private String name;
    private List<String> hobby;
    private Computer computer;
    private Map map;
}
